package com.johnny.nob.domain;

import javax.persistence.Entity;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

import com.johnny.core.hibernate.orm.IdEntity;

@Entity
public class NboMailList extends IdEntity {

	@NotNull
	@Size(min = 1, max = 100)
	@Pattern(regexp = NboContact.EMAIL_PATTERN)
	private String mail;

	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

}
